import axios from './base';

const User = {
  createUser: async (user) => {
    let requestData = await axios({
      url: "/createUser",
      method: 'POST',
      data: user
    });
    return requestData;
  },

  getAllUser: async () => {
    let requestData = await axios({
      url: "/getAllUser",
      method: 'GET'
    });
    return requestData
  },

  attendance: async (username) => {
    let requestData = await axios({
      url: "/attendance",
      method: 'POST',
      data: username
    });
    return requestData;
  },

  getAllAttendance: async () => {
    let requestData = await axios({
      url: "/getAllAttendance",
      method: 'GET'
    });
    return requestData;
  },
}

export default User;